package net.j4love.json.jackson.xml;


import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

/**
 * @author he peng
 * @create 2018/1/8 15:35
 * @see
 */
public class PayPlatResponseHeader {

    @JacksonXmlProperty(localName = "MERCHANT_CODE")
    private Long merchantCode;

    @JacksonXmlProperty(localName = "BIZ_NO")
    private Long bizNo;

    @JacksonXmlProperty(localName = "TOTAL_AMOUNT")
    private Integer totalAmount;

    @JacksonXmlProperty(localName = "TOTAL_COUNT")
    private Integer totalCount;

    @JacksonXmlProperty(localName = "SUCCESS_AMOUNT")
    private Integer successAmount;

    @JacksonXmlProperty(localName = "SUCCESS_COUNT")
    private Integer successCount;

    @JacksonXmlProperty(localName = "TOTAL_FEE")
    private Integer totalFee;

    @JacksonXmlProperty(localName = "ERROR_CODE")
    private String errorCode;

    @JacksonXmlProperty(localName = "ERROR_MSG")
    private String errorMsg;

    @JacksonXmlProperty(localName = "SIGNVALUE")
    private String signvalue;

    public Long getMerchantCode() {
        return merchantCode;
    }

    public PayPlatResponseHeader setMerchantCode(Long merchantCode) {
        this.merchantCode = merchantCode;
        return this;
    }

    public Long getBizNo() {
        return bizNo;
    }

    public PayPlatResponseHeader setBizNo(Long bizNo) {
        this.bizNo = bizNo;
        return this;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public PayPlatResponseHeader setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
        return this;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public PayPlatResponseHeader setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
        return this;
    }

    public Integer getSuccessAmount() {
        return successAmount;
    }

    public PayPlatResponseHeader setSuccessAmount(Integer successAmount) {
        this.successAmount = successAmount;
        return this;
    }

    public Integer getSuccessCount() {
        return successCount;
    }

    public PayPlatResponseHeader setSuccessCount(Integer successCount) {
        this.successCount = successCount;
        return this;
    }

    public Integer getTotalFee() {
        return totalFee;
    }

    public PayPlatResponseHeader setTotalFee(Integer totalFee) {
        this.totalFee = totalFee;
        return this;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public PayPlatResponseHeader setErrorCode(String errorCode) {
        this.errorCode = errorCode;
        return this;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public PayPlatResponseHeader setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
        return this;
    }

    public String getSignvalue() {
        return signvalue;
    }

    public PayPlatResponseHeader setSignvalue(String signvalue) {
        this.signvalue = signvalue;
        return this;
    }

    @Override
    public String toString() {
        return "PayPlatResponseHeader{" +
                "merchantCode=" + merchantCode +
                ", bizNo=" + bizNo +
                ", totalAmount=" + totalAmount +
                ", totalCount=" + totalCount +
                ", successAmount=" + successAmount +
                ", successCount=" + successCount +
                ", totalFee=" + totalFee +
                ", errorCode='" + errorCode + '\'' +
                ", errorMsg='" + errorMsg + '\'' +
                ", signvalue='" + signvalue + '\'' +
                '}';
    }
}
